import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('./views/Home.vue')
    },
    {
      path: '/list',
      name: 'list',
      component: () => import('./views/list.vue')
    },
    {
      path: '/cart',
      name: 'cart',
      component: () => import('./views/cart.vue')
    },
    {
      path: '/my',
      name: 'my',
      component: () => import('./views/my.vue')
    },
    {
      path: '/seach',
      name: 'seach',
      component: () => import('./views/seach.vue')
    },
    {
      path: '/product',
      name: 'product',
      component: () => import('./views/product.vue')
    },
    {
      path: '/listname',
      name: 'listname',
      component: () => import('./views/listname.vue')
    },
    {
      path: '/listdetail',
      name: 'listdetail',
      component: () => import('./views/listdetail.vue')
    },
    {
      path: '/address',
      name: 'address',
      component: () => import('./views/address.vue')
    },
    {
      path: '/addaddress',
      name: 'addaddress',
      component: () => import('./views/addaddress.vue')
    },
    {
      path: '/submit',
      name: 'submit',
      component: () => import('./views/submit.vue')
    },
    {
      path: '/orderlist',
      name: 'orderlist',
      component: () => import('./views/orderlist.vue')
    }
  ]
})
